baubs git
Commit a05d199b1bce19e264e9b4c014a222dbd71e0494
Parents : 2d33eb4
Author : Jan-Henrik Bruhn <hi@jhbruhn.de>
Date : 2025-12-06T20:38:02+01:00
Add comprehensive error descriptions and solutions for all machine error codes
Enhance the error handling system with detailed descriptions and step-by-step
solutions for all Brother PP1 protocol error codes. This provides users with
clear, actionable guidance when machine errors occur.
Added detailed error information for:
- Thread errors (0x00, 0x60-0x63): Upper/lower thread issues with rethreading steps
- Safety errors (0x01-0x03): Safety device activations and bobbin issues
- Restart errors (0x10-0x1C): System malfunctions with specific error codes (M519411-M51941C)
- Mechanical errors (0x20-0x21): Needle plate and thread lever positioning
- Hoop errors (0x70-0x72): Hoop detection and initialization procedures
- Maintenance errors (0x80, 0x98): Regular inspection and settings constraints
Each error now includes:
- Clear title describing the issue
- Detailed description of what the error means
- Step-by-step solutions for resolution
- Support contact information where applicable
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Changes
Diff
diff --git a/src/utils/errorCodeHelpers.ts b/src/utils/errorCodeHelpers.ts
index d2e932c..57bceab 100644
--- a/src/utils/errorCodeHelpers.ts
+++ b/src/utils/errorCodeHelpers.ts
@@ -53,6 +53,202 @@ interface ErrorInfo {
* Only errors with verified solutions are included here
*/
const ERROR_DETAILS: Record<number, ErrorInfo> = {
+ [SewingMachineError.NeedlePositionError]: {
+ title: 'The Needle is Down',
+ description: 'The needle is in the down position and needs to be raised before continuing.',
+ solutions: [
+ 'Press the needle position switch to raise the needle',
+ ],
+ },
+ [SewingMachineError.SafetyError]: {
+ title: 'Safety Error',
+ description: 'The machine is sensing an operational issue.',
+ solutions: [
+ 'Remove the thread on the top of the fabric and then remove the needle',
+ 'Remove the thread on the underside of the fabric and clean the bobbin case of all threads',
+ 'Check the bobbin case for scratches or contamination',
+ 'Insert the embroidery needle',
+ 'Check that the bobbin is inserted correctly',
+ ],
+ },
+ [SewingMachineError.LowerThreadSafetyError]: {
+ title: 'Lower Thread Safety Error',
+ description: 'The bobbin winder safety device is activated.',
+ solutions: [
+ 'Check if the thread is tangled',
+ ],
+ },
+ [SewingMachineError.LowerThreadFreeError]: {
+ title: 'Lower Thread Free Error',
+ description: 'Problem with lower thread.',
+ solutions: [
+ 'Slide the bobbin winder shaft toward the front',
+ ],
+ },
+ [SewingMachineError.RestartError10]: {
+ title: 'Restart Required',
+ description: 'A malfunction occurred.',
+ solutions: [
+ 'Turn the machine off, then on again',
+ ],
+ },
+ [SewingMachineError.RestartError11]: {
+ title: 'Restart Required (M519411)',
+ description: 'A malfunction occurred. Error code: M519411',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519411 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError12]: {
+ title: 'Restart Required (M519412)',
+ description: 'A malfunction occurred. Error code: M519412',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519412 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError13]: {
+ title: 'Restart Required (M519413)',
+ description: 'A malfunction occurred. Error code: M519413',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519413 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError14]: {
+ title: 'Restart Required (M519414)',
+ description: 'A malfunction occurred. Error code: M519414',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519414 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError15]: {
+ title: 'Restart Required (M519415)',
+ description: 'A malfunction occurred. Error code: M519415',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519415 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError16]: {
+ title: 'Restart Required (M519416)',
+ description: 'A malfunction occurred. Error code: M519416',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519416 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError17]: {
+ title: 'Restart Required (M519417)',
+ description: 'A malfunction occurred. Error code: M519417',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519417 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError18]: {
+ title: 'Restart Required (M519418)',
+ description: 'A malfunction occurred. Error code: M519418',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519418 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError19]: {
+ title: 'Restart Required (M519419)',
+ description: 'A malfunction occurred. Error code: M519419',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M519419 and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError1A]: {
+ title: 'Restart Required (M51941A)',
+ description: 'A malfunction occurred. Error code: M51941A',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M51941A and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError1B]: {
+ title: 'Restart Required (M51941B)',
+ description: 'A malfunction occurred. Error code: M51941B',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M51941B and contact technical support',
+ ],
+ },
+ [SewingMachineError.RestartError1C]: {
+ title: 'Restart Required (M51941C)',
+ description: 'A malfunction occurred. Error code: M51941C',
+ solutions: [
+ 'Turn the machine off, then on again',
+ 'If the problem persists, note error code M51941C and contact technical support',
+ ],
+ },
+ [SewingMachineError.NeedlePlateError]: {
+ title: 'Needle Plate Error',
+ description: 'Check the needle plate cover.',
+ solutions: [
+ 'Reattach the needle plate cover',
+ 'Check the bobbin case (for misalignment, scratches, etc.) and then reattach the needle plate cover',
+ ],
+ },
+ [SewingMachineError.ThreadLeverError]: {
+ title: 'Thread Lever Error',
+ description: 'The needle threading lever is not in its original position.',
+ solutions: [
+ 'Return the needle threading lever to its original position',
+ ],
+ },
+ [SewingMachineError.UpperThreadError]: {
+ title: 'Upper Thread Error',
+ description: 'Check and rethread the upper thread.',
+ solutions: [
+ 'Check the upper thread and rethread it',
+ 'If the problem persists, replace the embroidery needle, then check the upper thread and rethread it',
+ ],
+ },
+ [SewingMachineError.LowerThreadError]: {
+ title: 'Lower Thread Error',
+ description: 'The bobbin thread is almost empty.',
+ solutions: [
+ 'Replace the bobbin thread',
+ 'Wind the thread onto the empty bobbin in the correct way, then insert the bobbin',
+ ],
+ },
+ [SewingMachineError.UpperThreadSewingStartError]: {
+ title: 'Upper Thread Error at Sewing Start',
+ description: 'Check and rethread the upper thread.',
+ solutions: [
+ 'Press the Accept button to resolve the error',
+ 'Check the upper thread and rethread it',
+ 'If the problem persists, replace the embroidery needle, then check the upper thread and rethread it',
+ ],
+ },
+ [SewingMachineError.PRWiperError]: {
+ title: 'PR Wiper Error',
+ description: 'PR Wiper Error.',
+ solutions: [
+ 'Press the Accept button to resolve the error',
+ ],
+ },
+ [SewingMachineError.HoopError]: {
+ title: 'Hoop Error',
+ description: 'This embroidery frame cannot be used.',
+ solutions: [
+ 'Use another frame that fits the pattern',
+ ],
+ },
+ [SewingMachineError.NoHoopError]: {
+ title: 'No Hoop Detected',
+ description: 'No hoop attached.',
+ solutions: [
+ 'Attach the embroidery hoop',
+ ],
+ },
[SewingMachineError.InitialHoopError]: {
title: 'Machine Initialization Required',
description: 'The hoop needs to be removed and an initial homing procedure must be performed.',
@@ -65,6 +261,20 @@ const ERROR_DETAILS: Record<number, ErrorInfo> = {
],
isInformational: true, // This is a normal initialization step, not an error
},
+ [SewingMachineError.RegularInspectionError]: {
+ title: 'Regular Inspection Required',
+ description: 'Preventive maintenance is recommended. This message is displayed when maintenance is due.',
+ solutions: [
+ 'Please contact the service center',
+ ],
+ },
+ [SewingMachineError.Setting]: {
+ title: 'Settings Error',
+ description: 'Stitch count cannot be changed.',
+ solutions: [
+ 'This setting cannot be modified at this time',
+ ],
+ },
};
/**
Served by rngit 1.3.3 - Generated in 0.03s